package com.example.car.service;

import com.example.car.entity.Role;
import com.example.car.entity.Router;
import com.example.car.entity.User;
import com.example.car.entity.Driver;
import com.example.car.params.UserParams;
import com.example.car.vo.UserVo;

import java.util.List;

public interface UserService {
    List<User> getCustomerList(UserParams memberParams);

    User login(User user);

    Role getUserRoleByUserId(String userId);

    User getUserByUserId(String userId);

    List<Router> getRouterAddr(String role);

    void updateUser(UserVo userVo);

    String checkPhoneAndAccount(String phone, String account);

    boolean save(User user);

    String deleteUserById(String userId);
}
